﻿using Microsoft.AspNetCore.Idenmpotency;

namespace AspNetCore.Idenmptency.Test.Idenmptency
{
    
    public class AppIdenmpotencyRequest : IAspIdenmpotencyRequest
    {
        public HttpContext HttpContext { get; private set; }
        public RequestDelegate Next { get; private set; }
        public string Key { get; private set; }
        public AppIdenmpotencyRequest(HttpContext context, RequestDelegate next,string key)
        {
            HttpContext = context;
            Next = next;
            Key = key?.ToLowerInvariant();
        }
    }
}
